package iotwisp.school.user.qo;

import iotwisp.base.cqrs.BaseQO;
import iotwisp.base.orm.query.QueryCondition;
import iotwisp.base.orm.query.QueryConditionType;
import iotwisp.base.orm.query.QueryConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@QueryConfig(daoBeanId = "loginTokenService")
public class LoginTokenQO extends BaseQO<String> {

	@QueryCondition(name = "subjectId")
	private String subjectId;

	@QueryCondition(name = "token")
	private String token;

	@QueryCondition(name = "logoutDate", type = QueryConditionType.IS_NULL)
	private String logoutDateIsNull;

	@QueryCondition(name = "expireDate", type = QueryConditionType.LT)
	private String ltExpireDate;

	@QueryCondition(name = "clientId")
	private String clientId;

	@QueryCondition(name = "clientType")
	private String clientType;

	@QueryCondition(name = "ip")
	private String ip;


}